package com.tema2.Lab1_2;

import junit.framework.TestCase;

public class TemperatureTest extends TestCase {
	Temperature myTemperature = new Temperature();

	
	// Prueba para ver si se conirtio exitosamente la temperatura
	public void testCalculateCelsius() {
		assertEquals(myTemperature.temperature_Fahrenheit, 0.0);
		assertEquals(myTemperature.calculateCelsius(), -17.77777777777778);
		myTemperature.setTemperature(50.0);
		assertEquals(myTemperature.temperature_Fahrenheit, 50.0);
		assertEquals(myTemperature.calculateCelsius(), 10.0);
	}
}
